import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
import AddInquiry from '@/pages/AddInquiry'
import InquiryList from '@/pages/InquiryList'
import OrderItemDetail from '@/pages/OrderItemDetail'
import OrderItremList from '@/pages/OrderItremList'
import OrderList from '@/pages/OrderList'

Vue.use(Router)
export default new Router({
  routes: [
    /* 主页 */
    {path: '/index/:accessToken/:openid', meta: { title: '违章查询' }, component: Home},
    /* 添加违章停车 */
    {path: '/addInquiry', meta: { title: '添加违章停车' }, component: AddInquiry},
    /* 违章列表查询 */
    {path: '/inquiryList/:carNo', meta: { title: '违章列表' }, component: InquiryList},
    /* 订单子项详情 */
    {path: '/orderItemDetail/:itemId/:orderNo', meta: { title: '订单详情' }, component: OrderItemDetail},
    /* 订单子项列表 */
    {path: '/orderItremList/:orderNo/:carNo', meta: { title: '订单列表' }, component: OrderItremList},
    /* 订单列表 */
    {path: '/orderList/:accessToken/:openid', meta: { title: '订单列表' }, component: OrderList}
  ]
})
